import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login'
import home from '../views/Layout/index'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name:'login',
    component: Login
  },
  {
    path: '/home',
    name:'home',
    component: home,
    // children:[
    //   {
    //     path:'/grzx',
    //     name:'grzx',
    //     component:grzx
    //   }
    // ]
  },

]

const router = new VueRouter({
  routes
})

export default router
